Fix issue in OAuth tests