Add a test for adding a nested doc unit via REST
Tiny cleanup
Remove unused modules