tests: Fix creating remove_cmd.
tests: Fix creating remove_cmd.

Found by Coverity.

Signed-off-by: Andreas Schneider <5be00ddc76278cf6077f5047ca3384a88460c671@samba.org>
Reviewed-by: Jakub Hrozek <1d29819f3dc2f357f8859ebb61f57619f33263ae@redhat.com>
Reviewed-by: Simo Sorce <f9c00781198603c231569d98bc2bbcd0a4591fcf@samba.org>

jhrozek/socket_wrapper,jhrozek/socket_wrapper,anoopcs9/socket_wrapper,anoopcs9/socket_wrapper