Removes deprecated part of retrieve test

- The test used to rely on the retrieve_last function actually hitting
  the cache. Cache support for this was removed at some point and it was
  by coincidence that the test didn't cause any issues.