updated unit test for serializable