refactor(tests): Refactored the test scripts for reuse