test-lib-functions: remove bug-inducing "diagnostics" helper param