Fix phpize
Add tests