Fix execution of unit tests
For unclear reason the unit tests were only executed after running cmake once. After rerunning cmake the unit tests were not executed any longer.
CMake will now use the find package command. With a fresh build directory at first run the gtest installation is not yet there such that for this case the needed dependencies and variables are defined manually. The change needs also an update of the used CMake targets and variables. Also some wrong include statements were removed.