Added tests for DocumentNotFoundException