fix build_and_test.sh return non-zero bug