basic equals for reference
new tests for service and some refactoring