Updated tests and examples to run automatically with the command phpunit