Fix CMake tests