fixed unit test for serialisation of plant