Bug 973450 - [settings] refactor Device information panel with AMD patte...

separate hardwareInfo retrieval and check update function into separate modules, and make related tests works in AMD.
I just checked your test cases below and noticed that you would update some properties from these predefined stuffs, so do you think it would be better to put these lines inside `setup` ? In this way, we can guarantee they are new each time when use.