Test implementation of done() from promises-aplus/unhandled-rejections-spec#5