Add test for allSettled with an empty array.

Closes #345.