First working version of UniqueNode (code is a mess)
Added some tests