Add test for issue 6134

fixes #6134