Test case for before_models_committed