implemented tests for Post controller