added simple unit tests for cache object