Add document.all tests

Update of #80