Corrected direct reference to node1 by replacing it with self.node1. This was breaking the tests because node1 is not globally available and a property of the class.