Add tests for "all_nodes" method
Fix syntax error
Add more tests for all_nodes method