Add test for custom sorts and first and last convenience methods.