Fixing tests for nodes and their weights. As well as the globalErrorFile test