Refactor testScript struct.