Check for missing values in event retriever
Made event retrieval testable and added tests.
Made comment retrieval more robust and added tests.