Added tests for invalid posts