test that it errors when neither a character nor function was passed as a field value