Test fields of an object for correct data types