[fixes #294] finally work correctly with on(‘error’)

- [ ] mocha sucks, i blame it for the test failure (will investigate soon)