test: remove console.log() calls
index: fix failing test

Honestly, this normalization logic is getting kind of crazy...
It's a good thing that we have tests, because any more changes
and it's going to be scary to try and not break anything.