add tests for invalid scopes