add factory for post and rewrite post model spec