fixed problems with the karma / node unit tests
Merge branch 'dev' of https://github.com/votinginfoproject/Metis into dev