Added some tests for the promise hang.

This is still a work in progress, I think there is
something missing from how the error handling is chained.