Added test for check user agent