refactoring for account pay port tests