cmd/oauth: added tests for callback handler.
cmd: fixed test.