Centralize test_config with a helper

Signed-off-by: Ken Barber <ken@bob.sh>