test: document is ready