Rename cfg.Test to cfg.TestMode to keep it consistent.