Clean tests env for edit event