created test for issue #6