Fix test for issue 6805