remove redundant cmake test code