refactor(error): cleanup & external state
test(helpers): get rejection reason in right format