Add PHPUnit tests