Fix cache unit test