Added tests for inplace_trans