Using karma for unit testing