asynch testing code