Fixed broken tests and some warnings. extracted inmetasequence transport before changing it to use new C transport layer