started to implement tests with karma+mocha+chai