TestClient reads from the console and gets a null pointer exception on an end-of-file. This means that running TestClient in the background from a script on Linux is impossible.
The attached patch adds a new parameter "--nogui" which suppresses the prompt and does not read from the console.
Run TestClient on Linux: "mono TestClient.exe --loginuri something". Type Cntl-D and you will get a null pointer exception.
Actually adding the patch.
Patch applied, thanks!