Test define and lookup variable in same environment