fix the tests for peer-deps-invalid.js

This fixes `npm run tap` and the travis tests

Seems that during the "make tests run offline"-refactor there was a small bug introduced.