Fix test case for node service.
Fix index name.
Add abstract class for testing.
Move db connection to abstract class.
Move common field-types into model.
Rename variable in test case.
Change schema of node.