Creating test for issue #6
Fixing issue #6