fix no-more-free-nodes
add tests