Create class doubles in our example so they have a full lifecycle.

...rather than creating them in a nested example, which resets
them before they get used.

This is necessary for rspec/rspec-mocks#718.