Added test for case of undefined values