listaccounts can return a dictionary from account names to their balance
if the param as_dict is True, update tests.
Merge pull request #22 from laanwj/listaccounts

listaccounts can return a dictionary from account names to their balance