Fix testing (for real this time)

I've fixed all the issues that I can find that were causing spurious failures. I also changed it to output sandstorm.log on failure and grouped the test's wait times in a more central location to allow for easier tweaking.

I couldn't track down exactly what was causing the installation process to get stuck in the 'analyze' step, but I added a workaround that seems to fix it.