fix unit test
fix test.sh