added model factory equal test.