Add test for building a chain
wip
Introduce Node type