improvements for testing phar extension