Update to qunit tests, adds tests for popup and scattered widget. Fixes
errors found on the way: loadFromContent glitch, ModelTree check after
creation.