Fix wrong publishing logic in model
Comments and Logging
Add test_path for testing publish actions
Adding more test for checking publishing logic on model