Fix tests for txt