test: make shared object name variable

"eval ... $variable_name" trick is used.