Added test for issue #6

closes #6