Adds test to the cache