finished writing unit tests for now, minor change in service.js