Added negative test cases for serialisation/deserialisation