adding tests for nested subdocuments