finish tasks service, add unit test for services