Fixed travis ci tests

Travis ci tests were failing because 'grunt test' does not generate
its own config file.
Modified 'npm test' script to first copy the config template to a
new config file.