Add more unit tests for Pecl-based factory