Add tests for JSON conversion
Add tests for embedded documents