Simplified CMake tests a little