fix test for undefined level