new test with head node table and small bug fix