added failing integration test for issue #40