Add events to ProfileManager, add tests.