test: added cases from end-of-September debugathon

Also changed tests to work with core support for async listeners.