Test file for issue 6797