add test on undefined field