refactor cache test to not print on success