Fixed some syntax in php and added another phpunit test