Reject a promise instead of throwing an error
Update unit test
Use "npm test" instead of "./run-tests.sh"
Merge pull request #26 from macbre/reject-promises

Reject a promise instead of throwing an error