migrate test with cmake