Added tests for `updatePivot`