Welcome to LQ. .. ..
The command 'rpm -i' is not a "replacement" or "update" command.
'rpm -i' assumes that you will have both packages installed
at the same time.
'rpm -i' can also be used, if no other package by the same
name (or with the same files) is installed.
The idea with ' rpm -i ' : E.g. : You want two different
versions of a run time library at the same time.
'yum' will never use the 'rpm -i' command,
will always use 'rpm -Uvh' as default.
Which will update to the later version.
'rpm -Uvh' = the standard install command.
Please read 'man rpm'.
Preventing yum from updating this particular package :
Add a line in the spec file ...
Conflicts : <package-name>
... I'd guess, that will do the trick.
Alternatively, add a line to /etc/yum.conf :
... which will exclude all packages starting with the word test.
( Or use : exclude=test_DEV* )