Fixing async test