add test for user agent format

also removed spurious empty line