Remove stubs based on any_instance in favor of direct stubs on instances

For some reason, Mocha 0.13.3 produces errors for the use of
`any_instance` stubs in the caching tests. To fix this, this commit
provides the stubs needed in the setup for the specific instances to be
stubbed rather than setting up the stubs on the class.