add unittest for rowReduceInv