Added some asserts to the add document unit test.