Caching hydrator instances, tests for the factory