test(scoping): add test for #set behavior