Added pauses to tests so asynrinous calls will have time to finish.