Added CMake support for the tests.