Yes, there are a variety of safety checks in place to ensure that bad things don't wind up in the results.  The tests could be improved with additional examples to show off how that works, right now there's only a few to cover invalid data cases.