update user-agent computation
some tests