Add phpunit and some tests