make karma works
fix tests