JS unit tests fix - use toBeUndefined() instead of toEqual(null)

cc @PVince81 @LukasReschke 

This also makes more sense as the value shouldn't be there

Somehow my env is more strict because it doesn't accept `undefined` to be the same as `null`