Refactoring to events, and the first successful process spawn test