rewrite async tests