various small fixes in unit test script
Add a test make target