Write integration test