add phpunit to composer.json
make first test case with improved Tex2png class