added user factory and spec