Fix move_before and move_after
Add tests
Merge pull request #3 from ToxicWar/feature/moving_nodes

Fix move_before and move_after