Test the writing of values also