clippy: Suppress needless_pass_by_value in tests
Rationale: same as for useless_vec, as in 01cb7ee0.
Prompted by reading !1528 (4b1c86f5), so assigning review to @gabi-250
Rationale: same as for useless_vec, as in 01cb7ee0.
Prompted by reading !1528 (4b1c86f5), so assigning review to @gabi-250