Fix has file api test.