Added ServiceResult class and the tests