add EXPECT sections to broken tests, new test for toJsonArray if dirty array is clear