Fix CMake testing module.
Merge pull request #731 from LuisAntonRebollo/fix_cmake_testing_module

Fix CMake testing module.