Adding tests for PopupPresenter

Should cover all corner cases in PopupPresenter, including #64