Add test to ensure what we write can be read again