Fix travis build script to fail if tests fail