localhost -> 0
Register nodes synchronously
Clean up some test cases
Create test-directory