Merge "Fix the rounding bug of resize test and impl; Add mirror test."