refactoring pipedrive test