fix user agent test.