updated tests
work with root level arrays