All tests for caching now work

Might need to add more tests later.