Add test on document.ready