Fix test for Oauth adapter creation