Fixes bugs, and pytest settings.

- Moved to absolute imports (please use virtualenv)
- Fixed bug with merging nodes