fix execute async script

the timeout needs to be after the script is called so that the asynchronous script provided by the user can be called before the timeout script in the case where both timeouts are equal

the test doesn't need 100ms, 10 will suffice.