fix node attribute inspect vs to_s problem

this fixes #1562 
Can you also add an equality test so we validate what the expected output looks like?  IE,

```ruby
expect(@attributes).to eq("foo: bar")
```