Adding invalid persister class to error message in factory