Port over test adjustment.

Just a straight port of https://code.google.com/p/modpagespeed/source/detail?r=4140