test for hai file