Completed the tests: AccountService. Refactoring js: added jsonQueries.