Cache tests