rest: fix sso tests
rest: typo
rest: log json errors