Added test for github issue #2