fix array building, reverse check_equal tests