Added PHPunit tests