add tests for children running on correct events