Add npm test command.

This way travis actually runs tests which it doesn't do at the moment.