Initial import

Add events utils errors and tests.