So the errors you're getting during testing are actually because nothing is ever actually requiring the ./badge-type model during those tests, so the badge model gets confused because it has a relationship to a 'badgeTypes' table that never gets defined.  Adding a

```
require('./badge-type');
```
line here will fix that.