Ignore .test files. [ci skip]
Extract common method, cleanup dirs in tests.
Method to read or generate raft node name.