controller test for posts@index