Added some test cases for the cache. Also implemented cache searching.