Added tests for creating events and grants