mocking env.setCharacter
added possibility to predefine event objects