testing write methods