cache: fix unit test