refactors outh2 specs to be more consistent

This is the first pull request on some work I will do on the oauth2 middelware