Add tests and fix bad obtaining node property.