added Asynch functionality to test