Tests for user agent string template