DRY out integration tests