Connection between referee and service layer, referee test and some fixes.

+ RefereeTest class
m integration service with referee
f fixes for graph init