Api tests on /node is working.
Refactoring.