Delete old unit tests and implement with CMake