Fix cache test