test cases for announcement creation and editing

publish time and expiry time should be parameters, if we want to test for different scenario.