Added another testcase for pivot method