refactored malformed datatable checks & specs