add rerun test events to engine

Sends ["rerun_passed_test_files"] and ["rerun_failed_test_files"] events.