Added test for writing to phar://