Add test for github issue #28