file handler and is_uri tests