add test case for #1029310 & #1030050