fix oauth tests
Fix oauth test by updating app configuration to open registration and loading templates.