sinon, working tests
working api for account