Fixed getUserAgent test to a better assertion