added in cache test, added getter to cache for testing purposes