test: use expectAsync for rejections (#831)