Add PHPUnit tests for wrapper implementations