fixed unit-test script and made it executable