update function declearation in build_and_test.sh