added factory and spec for publications