Adds a test from issue #8

See #8