test that newValue is defined