Refactor variable tests

- Did TODO's.
- Migrated tests to use new debug_code method.
Style issues, docs, rubocop...
Return no locals for c-frames

We were returning locals for the frame_locals method itself.
Remove unnecessary send