test rest.isAuthorized()
add rest.checkToken() test