added URL validation

- improved tests