Thanks Anthony for fixing those two test cases. I have verified it and patch looks good to me.
Attached is the modified patch where I have remove "import time" which is not required and update the retry message from 10 to 60.
To be honest I have seen some intermittent "Timeout" issues on Chrome and FireFox and those issues are not consistent for any particular test case.
@Hackers, Please review it and if it looks good then commit it.