Remove unneeded asertion from cache test.