Raise ImproperlyConfigured if resource has no scopes defined
Test for improperly configured views