fix test assertion in an old service definition and removed AnyObject useless class