Used more precise assertions in cache tests