remodeling cmakelists for tests