Modified build_and_test script.