add test case for externalizable