Test and fault-tolerance for network-on-chip infrastructures