Working on unit test for file encoder/decoder