Add subdocument update tests

Signed-off-by: Ian Macalinao <me@ian.pw>