Refactor: BaseDocument unit tests.

Split BaseDocument unit tests into separate files.