Added some more tests to reproduce empty doc bug. No luck.