Fixing failing testcase when removing first element of list.