There are many issues with this test.
Created attachment 243210 [details] proposed fix
Committed <http://trac.webkit.org/r177231>.