removing debugger code, attempted some mocking; still have some failing tests
pending test, added comments and a mock