Fix unit test for undefined items