Test handle undefined text