example test for asynchronous workflows with QTimer, quite ugly