test for undefined var