Fix readystate test.