consolidated test code for bank account resource