fdo#71581: Fix unit test cases.