pickle test with simple file handling