Service layer tests