bug is fixed, removed the fixme comment
added some utils functions on documents and document collections
refactoring in test packages