Added tests for empty arrays and objects.