diff --git a/tests/Makefile.am b/tests/Makefile.am
index 73badfc..5c1ee0e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -2,7 +2,8 @@ noinst_PROGRAMS = \
 	testephyembedpersist \
 	testephysearchentry \
 	testephylocationentry \
-	testephyzoomcontrol
+	testephyzoomcontrol \
+	testephyembedutils
 
 INCLUDES = \
 	-I$(top_srcdir)/embed    \
@@ -49,3 +50,6 @@ testephylocationentry_SOURCES = \
 
 testephyzoomcontrol_SOURCES = \
 	testephyzoomcontrol.c
+
+testephyembedutils_SOURCES = \
+	testephyembedutils.c
diff --git a/tests/testephyembedutils.c b/tests/testephyembedutils.c
new file mode 100644
index 0000000..e72ab00
--- /dev/null
+++ b/tests/testephyembedutils.c
@@ -0,0 +1,71 @@
+/* vim: set sw=2 ts=2 sts=2 et: */
+/*
+ * testephyembedutils.c
+ * This file is part of Epiphany
+ *
+ * Copyright © 2010 - Alexandre Martani
+ *
+ * Epiphany is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Epiphany is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Epiphany; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Boston, MA  02110-1301  USA
+ */
+
+#include "config.h"
+#include "ephy-embed-utils.h"
+#include <glib.h>
+#include <gtk/gtk.h>
+
+static void
+test_normalize_address (void)
+{
+  static char *original[] = {
+    "http://www.example.com/path/to/some/file.php",
+    "www.example.com",
+    "example.com/path/",
+    "https://example.org:8000/",
+    "ftp://example.net/",
+    "WwW.ExAmPlE.CoM/Path/Is/Case/Sensitive.HTml",
+    ""
+  };
+  static char *results[] = {
+    "http://www.example.com/path/to/some/file.php",
+    "http://www.example.com/",
+    "http://example.com/path/",
+    "https://example.org:8000/",
+    "ftp://example.net/",
+    "http://www.example.com/Path/Is/Case/Sensitive.HTml",
+    ""
+  };
+
+  int i;
+  char *result;
+
+  for (i=0; original[i][0]; i++) {
+    result = ephy_embed_utils_normalize_address(original[i]);
+    g_assert_cmpstr (result, ==, results[i]);
+    g_free(result);
+  }
+
+}
+
+int
+main (int argc, char *argv[])
+{
+  gtk_test_init (&argc, &argv);
+
+  g_test_add_func ("/embed/ephy-embed-utils/normalize_address",
+                   test_normalize_address);
+
+  return g_test_run ();
+}
