add testcase that checks finished event emitting