Removed not useful type cast to int of connection port in test cases