Added some phpunit tests