Added `undefined_rows` to `TfIdf` and unit tests for the module.