Changed profile test to allow time between execution and event