added test daemon and adjusted CMakeLists.txt accordingly