Refactor tests

Test are refactored to separate functionality and to enable reuse in users of the provider.
Just to clarify, the main problem here is that the SCOPES used by `django-oauth2-provider` should be loaded in certain order for them to work. Given how Django settings/apps work, this can be very messy. I'll make a ticket to fix this in the future.