updated testacular to karma and some minor fixes