working karma tests
tweaking tests