test: add asyncListener tests

These tests should cover all basic uses of the asyncListener API.