start work with karma and add some tests