fix return value of gen_socket:socket in test suite