Added test init
Changed write test