added spec for post and vote