test mainctrl