fix js unit tests wrt breaking changes in karma>v0.8.x