QA: add login info to api-history-permission-tests (unable to repro failure shown on buildbot), use API to check loggedInAs