ZSS-450:
 * fix using wrong index issue when inserting row
 * remove excess rows/columns when inserting row/columns
 * add test case