Add tests

Adds phpunit tests