tests for oauth + fix for remaining tests

Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>