Add test for iin_array and fix HTTP destruct