Issue #125: Return code snippet

#125 

Adds a selector string for the error-triggering element to the object passed to the testFails callback. Also adds window.location information if a window exists.