added helper test function for account management