tests: Fix some compile errors and warnings

* aspath_test.c: match changes in aspath_unintern. Fix printf size_t warning.
* bgp_capability_test.c: compile warnings.
* bgp_mp_attr_test.c: update for attr parser context struct
* ecommunity_test.c: ecommunity_free/ecommunity
* test-checksum.c: some unused vars and funcs without need of prototypes.
diff --git a/tests/ecommunity_test.c b/tests/ecommunity_test.c
index 418f659..87f20f2 100644
--- a/tests/ecommunity_test.c
+++ b/tests/ecommunity_test.c
@@ -25,7 +25,7 @@
 static struct test_segment {
   const char *name;
   const char *desc;
-  const u_char data[1024];
+  const u_int8_t data[1024];
   int len;
   struct test_spec sp;
 } test_segments [] = 
@@ -97,7 +97,7 @@
               str1, 
               (etmp && str2) ? str2 : "NULL");
     }
-  ecommunity_free (etmp);
+  ecommunity_free (&etmp);
   XFREE (MTYPE_ECOMMUNITY_STR, str1);
   XFREE (MTYPE_ECOMMUNITY_STR, str2);
   
@@ -122,7 +122,7 @@
     printf ("failed\n");
   
   printf ("\n");
-  ecommunity_unintern (ecom);
+  ecommunity_unintern (&ecom);
 }