diff --git a/app/tests.py b/app/tests.py
index 3b9400b8b041304843345dcea35021a8087b504c..41359cb8d4ed1e71fe931cf7abc9f9f087c54fbc 100644
--- a/app/tests.py
+++ b/app/tests.py
@@ -17,4 +17,11 @@ class TemplateLoaderTest(TestCase):
         url = "/test-page.html"
         found = resolve(url)
         expected_view_name = "pages"
-        self.assertEqual(found.func.__name__, expected_view_name)
\ No newline at end of file
+        self.assertEqual(found.func.__name__, expected_view_name)
+
+    def test_template_loader_handle_non_existent_html(self):
+        url = "/test.html"
+        expected_template_name = "error-404.html"
+        response = Client().get(url)
+        self.assertEqual(response.status_code,200)
+        self.assertTemplateUsed(response, expected_template_name)
\ No newline at end of file