> OK, I prefer writing the failing test before correcting this

Definitely good policy! Thanks a lot for caring about code quality.