Add an extraction function, make the main script do this too
Make the test script executable