Replaced assert_array_equal with custom routine