test SDPService & refine memory management