refactoring script pack tests