Add integration test for #834.