test that the micropost is valid and presence of user_id attribute