Test for MainFrame