Adds test for clear & exists method of Cache.