Add test for asynchronous `stat`