add phpunit tests