add tests to pecl package, fixed #332