Adding tests for creating posts