Refactor some unit tests for MainPresenter.