Refactored post status message tests for better test coverage