Fix `thenResolve` tests.
Add an extra `thenResolve` test.
Add `thenReject`. Closes #219.