test code for HROOT to escape problem of TApplication