Updated timeout for 1 second in check_port test