Fixed simulator unittest
Running time measurement in simulator
Added printing of statistics