Fixing issues in regression test suite test_accounts.py