Add CMake file for tests