updates tests to use cache dictionary