Add node hammer code
Fix tests