fix TestService compilation issues