tests do not work correctly with older CMake versions -- added check