minor fixes to v1

extended test.pl script a bit