fix test ctf mode