Added a few tests for post controller