Move a couple tests to a more convenient place

They have nothing to do with basename setting and that position in the
file made me think that way.
Bump rubocop dependency
Simpler change_line method (no tap needed)
Rewrite list tests to use debug_code method
Rewrite reload tests to use debug_code method
Rewrite delete cmd tests to use debug_code method