implemented another service test
refactored tableService to factory