Correct unit test handling in cmake.