Fixed a problem with Linux -fPIC
tests added to CMakeLists.txt files