add test for issue 6 (closes #6)