add env and finish plugin mock