add regression test for doubly nested data