Better solution for testing

I did not checked, but when I first ran the test with Autotest I got assertion violated (including some check), and those were not violated/reported with your demo.ecf + TESTING class.

I did not checked deeper, and maybe I am wrong.