Allow tests to be run via grunt and karma