completed serialisation test case. close #20