1. Agree with Chun to compare with the useragent got from javascript.
2. per https://github.com/crosswalk-project/chromium-crosswalk/blob/master/webkit/common/user_agent/user_agent.cc#L56 , you should split the test cases so that each case will do the `Set` operation only once and before any `Get`.