More robust testing of data object before fit