Change steal to require in tests, move createEvent functions up to top