adding tests around port resolution