Tests: Move 'exit' event binding above domainit call.