Fix the test case that is using spyOn and add another one to test on refreshing the cache. Also add an empty line to  the test file.