Phpunit

phpunit testing for ticket #9