Fix test breakage under Mac OS X