Use factory_boy to create factories

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
Replace fixture with factories

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>