Added tests for subDoc and subSubDoc functionality