Fix issues with PHPUnit not running

Site had been set into maintance mode. Now before it runs phpunit, it
takes the site out of maintance mode automatically.