Make test script exit on failure so that Travis builds properly fail