Adding unit tests

Error is very generic, please indicate what is not set.  Could say "Missing field 'dialect'" or something.