adding event rate tests code