exported all the tests to chai, to make it possible to test
automatically in browser aswell
almost there...
fixed the last tests..
all done with the test fixes.. now tests with grunt both in node and in
browser..