Creating helper to make cache testing easier