Create a test for the maintenance widget, improve CasperJS logging