Added some Selenium tests and improved the advanced search system