Added maximum number of events to fetch so that code compiles, tweaks to testbed