added phpunit testing