To compile the unit-tests add -DKDE4_BUILD_TESTS=ON to the cmake call run "ctest" to execute unit test