Added optional variable test case.