tests: fixed cache test