add karma for front end unit tests
add karma config, define mock and specs for i18n and im.poi
fix function description