Fix #1191

Make sure that a test case returning a promise fails if the promise is rejected without a reason.
Merge pull request #1224 from mattias-lw/fix_issue_1191

Fix #1191 - Tests succeed on rejected falsey promises