cache bug, unit tests