add PHPUnit tests