test: Fix function parameters to reference types.