Added tests when updating with whole document. Added where clause to make sure that nothing added to stored document (issue #3).