Working unit- and e2e testing

Replaced testacular with karma and updated files accordingly