all done with the test fixes.. now tests with grunt both in node and in
browser..