Implemented tests for post-related API