Add tests for factories and compat

![http://cdn.meme.li/instances/500x/54037641.jpg](http://cdn.meme.li/instances/500x/54037641.jpg)