#646 Fixed tests for sort page contents command.