PHPUnit tests

Added basic phpunit tests