Better error handling in link normalizer + more tests for edge cases