Adding unflow tests

And making the tests work in karma