Added calls to clearEnvironment to some tests
Created basic EventTest
Tested, implemented DocumentCollection::first