Add phpunit tests