Moved caching tests to separate file.