Actually, is this even a function in Jasmine? I can't find reference to it in the docs, and even if it existed, I'd expect this to fail since your trip object doesn't have a `valid` or `isValid` function.