Test for to_solr on generic_work
Don't overwrite a pid if a pid is already assigned