Done some changes for performMutation() and add some new tests codes