Updated test to cover null values for defined variables.