add phpunit to composer; fix some log stuff