All in class
added PHPunit tests