test that generator fails on data having null element
add null test cases

do not encode items having null value