Fix use before init warnings in asynctest