Improved time checking for elements being loaded
Improved patch management tests