Improve oauth2provider error control tests