Fix memory leak in opencv_bridge. Fix tests.