add document ready to test