--build-and-test builds a CMake project, so CMAKE_ROLE should be PROJECT. Fix this and add a test case.