fix debug frame test

fix debug frame unit test (wx.Frame doesn't have EndModal()).