sorting and filtering tests for contact_spec.rb and DRY