Fix test config generation