added logging for phpunit testing