Added a test for the new startup logic, and reinstated the missing ApplicationReadyEvent