KAA-280: Add unit tests for the meta data extension. Update event processing routine to reduce memory consumption.