ACCUMULO-2865 Add ZooCacheTest

This adds a unit test for ZooCache. ZooCache itself was only changed slightly, with the
addition of methods to check if information was cached and improvements to its comments.