Remove duplicated code in integration tests
Fix typo in name