Added function to check if peer was added successfully, This check is performed after peer is added. addtest now calls cmd_addpeer instead of add_peer_to_swarm method.