Test main controller