Added a test for reading/writing egret