Added `valid-address-p` function and tests