fix setSpeed when source is not started and update asynchronous testing