add test for undefined