Added tests for HomeoQtSimulation, plus some improvements to the same class