DebugService modified to DebugProvider, tests fixed