test(engine): test getVariableInstance* methods in VariableScope

related to CAM-2544