add test for undefined variables