Added phpunit tests