Adapt applicable tests to use .total rather than .elems