Updated test_checking and testing the use of the cache