Rewrote testCache test