App loading optimisation + unit tests to PHP 5.4