Tests that the document's readyState is set properly at various phases during load.