Update fix Bugs with karma tests and gulp file