Add tests for factories and compat

Oh I think I get it now.  Ta. :)