Add sortByName and sortByNameAndLife tests