fixing async tests