fix default useragent & add test

test