tests fixed
schedule event api implemented