added PHPUnit tests