parser: fix version parsing. check user agent in tests.