fixed issues with asynch tests