added phpunit and example test