added PHPUNIT tests