Add unit tests for CtfManager.