Bug 935710 - [Settings][Tests] Write unit tests for mvvm - r=arthurcc

- Adds unit tests for mvvm/ code
- Corrects some implementation errors in mvvm
- Fixes jshint for mvvm code

Closes gh-13442