Added a test that verifies distinct operations on nested embedded documents.