Remove deprecation warnings and enable test

Also fixes previously broken code uncovered by this
8ca9452a82ominitay committed on 1/29/2022, 1:49:00 PM· committed by Veikka Tuominenparentadea9a1
3 files changedLine totals unavailable