Bulk of the integration test.