file-spec: improve tests.