Add tests for factories and compat

Is this comment wrong?  It doesn't seem to mesh with the rest of the code (including the first line of the docstring).  Or am I just misunderstanding what this is used for?