add a test for nested resolution scope