Tortoise: add tick counter support

Please merge my new tick and exception handling test code.