simplify Node::generate
refactory Attributes::generate
add code coverage badge