test null key handing