Beautifying of Unicode mode check in tests