Add phpunit tests

Php unit tests