Add unit tests for missing functions in model.txdb