TS-1475: UpTest class doesn't take ownership of fd so it doesn't get closed. Coverity #1022145