This fails early for me due to a permission issue when I run this with:

    sudo test/nginx_system_test.sh 8090 8091 /home/oschaaf/code/google/mod_pagespeed /usr/local/nginx/sbin/nginx

When I allow everyone to read/write in this directory, while to test runs, the test completes normally.