Some refactorings: move test to test folder and move nodes to node
pacakge.