fix warning about T in tests