[arte] Modernize tests and fix _VALID_REGEX