Completed docroot implementation and tests