Refactored Adapter to only have toRawEvents as a public function, updated test suite to reflect this