karma js test fix