document ready issue for testing