add test for unresolvableFactoryRejection
fix bug and add test for exceptionRejection
move error tests into separate file
remove console.log