Added tests for raising ValidationError instead of AddrFormatError