Move debugger to new api and add basic unit tests for it