Tests for generating a ScriptProfiler.Event with ScriptProfiler.EventType.API type.