bringing up tests after changes in document metadata model and fixing bugs