Bug 1065279 - [settings] refactor Hotspot panel with AMD pattern

The test script looks good.

The current mock of `SettingsListener` allows you to control when the registered callback are triggered by exposing `mTriggerCallback`, which is more deterministic. If the mock settings listener is too complex for the test case, you can consider to define a simpler version of the mock in the script.