add PHPunit tests