add test for object conditional with scope