when I comment the the emit error in tryCode and add 

```
 db.on('error', function (e) {
          console.error(e);
        });
```

all the tests pass