Added an integration test.