Add unit testing coverage

add coverage for mocha and karma:unit