Added unit tests for event wrappers and for refetchEvents command.