Since in bluetooth.js `mozSettings.addObserver` is used, I guess you may want to mock the `addObserver` function?