Create test for main controller