added in a test for saving subdocuments with the right hooks

Fix typo please :)