Add better logging to testing script