Update Interface.is_compatible to check port transmission type, add more unit tests.