replace resource refer on afterAll method