Update cache_tests.py

Changes mades in terms of comments