Added methods for testing if a node is a solution.