added karma tests (chai+mocha :coffee:)