Add is_domain validator and test