new unit tests for directives

New unit tests added for directives activeLink and mbinput. This required
a modification of karma config files to load properly the template files.