tests: refactor the async test a bit
tests: refactor the async test a bit

pavlix/netresolve,andyvand/cygnetresolve,pavlix/netresolve,crossdistro/netresolve,pavlix/netresolve,crossdistro/netresolve,andyvand/cygnetresolve,andyvand/cygnetresolve,crossdistro/netresolve