Add some sanity tests to gstpad.c. Check that pad is linked before calling gst_pad_t...