Add disconnected graph test