Added Write tests

Signed-off-by: Luis Pabón <lpabon@redhat.com>