Fix some selectors for advanced search form.

We removed the IDs of some of the form elements because they were causing HTML5 validation errors. This updates the tests to use CSS selectors.
Merge pull request #242 from rlr/patch-2

Fix some selectors for advanced search form.