test and implement post#index returns list of posts