Test for posts controller