Writing the integration tests