make the test shell script more generic

Hello,

i make some small fixes to the test shellscript.

cheers

meno