Added testability and tests for can_be_null and null_is_trivial in result entries