Prevent crash when return value from tested function is undefined.

I forgot the return statement on the first example, and ended up with a callstack instead of a failure.

This should make for easier debugging when someone does that.