Added tests for feature and custom validation for end_publish