Added tests for post controller.