Test case for bNode duplication bug
Fixed bNode duplication bug by updating register only after batch of
items has been registered
Cleaning up comments around last fix