Changed the way tests are run
Refactores dome tests