added in a test for saving subdocuments with the right hooks