Add exit in build script if tests fail