better user agent exception tests