Add a unit test for #1104, properly use @AsyncTest