removed unused code in serviceConfig and test