Check for component key in tests

Seems that not all python-apt verson have this key for origins
so check that.