Added debugger, wrote new tests for refactored get #index