Tests that exceptions are raised when fields are not present in data