Added basic tests for file (un-)marshalling.