moving scripts ; improved tests; added check for arcs that nodes are not connected already