CMakeLists.txt modified so that test is enabled from the cmake root