Add test on encryption, and method for serialization of data.
Fix file bug