Add integration test for issue #2
could not reproduce the problem yet