Try to make tests that pass locally pass on Travis.

This switches to stubbing 'subject', which is not ideal. But the stub is
on a method of a framework superclass, and we don't mess with the method
in the subclass. Also, there are integration tests around this code.