Added new testcase which checks for valid network upon adding the same node twice.