A few fixes for the tests
Adding some sleep time to let the datepicker to appear and disappear