Increase the sleep between job end and checking accounting record from 3 to 5 seconds so the test will work reliably.