Add testing for user agent string
Tidy up option passing to selenium