Add port test to template