add test for injecting scopes