Finished the NodeLayout impl and added some tests