FUNCT better build_and_test.sh script