decouple test and demo
At the moment, the test also writes out the result image. This is not desired, because the octave script has more than one purpose.
I suggest to decouple the testing and the demo. Ideally, the demo will only run if the tests were passed.