debugger: Complete implementation of old test cases and some new ones