Adding tests to cache api