Test the sort criteria classes.