adding more serialisation checks to file tests.