tests: uri: fix build without -DGST_DISABLE_DEPRECATED

Must undefine it before including gst headers, since the test
tests deprecated API.
diff --git a/tests/check/gst/gsturi.c b/tests/check/gst/gsturi.c
index 3f753f6..ee623db 100644
--- a/tests/check/gst/gsturi.c
+++ b/tests/check/gst/gsturi.c
@@ -21,6 +21,10 @@
 #include "config.h"
 #endif
 
+#ifndef GST_REMOVE_DEPRECATED
+#undef GST_DISABLE_DEPRECATED
+#endif
+
 #include <gst/check/gstcheck.h>
 
 GST_START_TEST (test_protocol_case)