fix tests add ServiceFactory