added tests for undefined and null variables in define option