created post controller and test