Replace assert_array_equal with array_equal in order to remove
try-except blocks