Refactor tests: add helper to provide test parameters.