refactor the BankTest