Add test for address normalization.

* ...and fixed a bug for it.