Fix constant already defined error when running only Cache tests.