Fix test broken after oAuth interface change introduced in fcf95755

Also improve error message on miscall