unit testing for removeNextLargerSuccessor