Removed test.cpp and updated CMakeLists.txt to compile libraries