fixed CMakeLists.txt
added test