Added phpunit tests.