Add tests in cmake