Bug 973452 - [settings] refactor Application storage panel with AMD patt...

...ern
To make the test more robust, please check the `observe` function is called with 'usedPercentage', 'totalSize', 'usedSize', and 'freeSize'.