add test for undefined result