add NPE unit tests for PrepareVelocityContextService
add call to checkMandatoryDocuments in init for main wiki