added specs for embedded documents