Fixed global paths in tests

Fixed global paths to mocha and karma. Now using the locale modules.
Travis-ci was not able to execute the tests before.