added phpunit & tests