Added PHPUnit tests