test: fix async listener test for windows