trying to reproduce #319 in an integration test