added code coverage using karma, fixes #3