more robust validation/normalization for null values and case where this.context is not defined
validation tests