unit tests and some code clean up

added some more unit tests to the mainviewmodel and removed some useless
code in the bootstrapper