more unit tests for the accounts api