more accurate autostart test in ready function