src - Raise an exception if a wrong element type is detected
test - Test for raised excption on wrong data
src - Raise exception if ref value is missing