Add Document's tests

It closes #84