#22 add test cases for serializing nil value