added phpunit tests