fix UnitTest of MainViewController

delete unnecessary code.