[server] Move assertUsersInDB() to Helpers.cc so that other tests can use it.