Service Enpoints wroking, Added test for it

Refactored/moved  Result class , not used at the moment