Added delete functionality to DocumentController and started introducing tests for controllers