Add docstring, remove keys() in test_compile_cache