Fix test case for issue 5684