changing test calling to asynchronous