a test that makes sure that null values are correctly restored