Fixing sourceMap and tests.

With this pull request files `.map` are generated correctly, including the correct path to the original files.

Also fix the `Gruntfile.js` project to properly run the tests.