Fix usage of sinon in tests

Enables the http://localhost:8080/webpack-dev-server/test magic.