modified some files for karma setting