Add PHPUnit and some tests