sw test tool: Fix problems for disconnected switches