Clear duplicate promise rejections

The test was also broken; it needs to check for emptiness after fail()
runs.

Fixes #238