typo
Merge pull request #392 from twokul/typo

typo
fixup promise inheritance.
set CustomError's constructor
oops, ran the wrong test suite...