Fix CPE for tests