Quick and dirty test code to allow for memory cache test. Heavy use of
reflection since the API is private, but I don't mind how private it is
:)