adds test for issue #9