added karma for tests and updated gulpfile