add unit test into cmakelists