more reading/writing dictionary test code