Bug 949730 - Investigate test_cleanup_scard unittest failure

Change asserts to waits as file operations are asynchronous